package com.xidian.zhiancloud.model.exam;

import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.xidian.zhiancloud.qo.BaseReqQuery;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 考试计划对象 t_exam_plan
 * 
 * @author zhouweitao
 * @date 2021-03-08
 */
public class TExamPlan extends BaseReqQuery
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 计划名称 */
    private String name;
    
    private List<String> username;
    
    private String papername;

    /** 组织部门 */
    private String depart;

    /** 考试形式0线上， 1线下 */
    private String type;

    /** 0公司， 1，车间，2班组 */
    private String level;

    /** 试卷id */
    private Long paperId;

    /** 考试开始 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date examStart;

    /** 考试结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date examEnd;
    
    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;
    
    private int number;


    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;
    
    private List<TExamPlanUser> users;
    
    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setDepart(String depart) 
    {
        this.depart = depart;
    }

    public String getDepart() 
    {
        return depart;
    }
    public void setType(String type) 
    {
        this.type = type;
    }

    public String getType() 
    {
        return type;
    }
    public void setLevel(String level) 
    {
        this.level = level;
    }

    public String getLevel() 
    {
        return level;
    }
    public void setPaperId(Long paperId) 
    {
        this.paperId = paperId;
    }

    public Long getPaperId() 
    {
        return paperId;
    }
    public void setExamStart(Date examStart) 
    {
        this.examStart = examStart;
    }

    public Date getExamStart() 
    {
        return examStart;
    }
    public void setExamEnd(Date examEnd) 
    {
        this.examEnd = examEnd;
    }

    public Date getExamEnd() 
    {
        return examEnd;
    }

    public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public String getPapername() {
		return papername;
	}

	public void setPapername(String papername) {
		this.papername = papername;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}






	public List<String> getUsername() {
		return username;
	}

	public void setUsername(List<String> username) {
		this.username = username;
	}

	public List<TExamPlanUser> getUsers() {
		return users;
	}

	public void setUsers(List<TExamPlanUser> users) {
		this.users = users;
	}

	public int getNumber() {
		return number;
	}

	public void setNumber(int number) {
		this.number = number;
	}

	@Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("depart", getDepart())
            .append("type", getType())
            .append("level", getLevel())
            .append("paperId", getPaperId())
            .append("examStart", getExamStart())
            .append("examEnd", getExamEnd())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
